/*
 * @FilePath: /cpp_study/ch05/express.cpp
 * @Description: 
 * @Author: dengrunting
 * @Date: 2022-01-07 16:11:56
 * @LastEditTime: 2022-01-07 16:12:57
 */
#include<iostream>

int main(){
    using namespace std;
    int x;

    cout << "The expression x = 100 has the value ";
    cout << (x = 100) << endl;
    cout << "Now x = " << x << endl;
    
    cout << "The expression x < 3 has the value ";
    cout << (x<3) << endl;

    cout << "The expression x > 3 has the value ";
    cout << (x>3) << endl;

    cout.setf(ios_base::boolalpha);
    cout << "The expression x < 3 has the value ";
    cout << (x<3) << endl;
    
    cout << "The expression x > 3 has the value ";
    cout << (x>3) << endl;
    return 0;
}
